<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .w{
            min-width: 600px;
            max-width: 1200px;
            background-color: pink;
            min-height: 200px;
            max-height: 600px;
        }
    </style>
</head>
<body>
    <div class="w">
        <p>222</p>
        <p>111</p>
        <span>655</span>
        <p>996</p>
    </div>
</body>
</html>